package com.ibeetl.admin.core.util;

import org.apache.commons.lang3.math.NumberUtils;
import org.springframework.stereotype.Component;

@Component
public class BeetlNumberUtil extends org.beetl.ext.fn.StringUtil{
    
	public String toString(Object object)
	{
		if (object == null) return null;
			
		return String.valueOf(object);
	}

	public Long toLong(Object object) {
		return NumberUtils.toLong(String.valueOf(object));
	}
	public Integer toInt(Object object) {
		return NumberUtils.toInt(String.valueOf(object));
	}
}
